import axiosServer  from "@/utils/request";

export const requestProductList = (pageNo)=>{
    return axiosServer({
        method:'get',
        url:'/api/shop/list',
        params:{
            pageSize:6,
            pageNo
        }
    })
}

export const requestBanner=()=>{
    return axiosServer({
        method:'get',
        url:'/api/shop/banner'
    })
}

export const requestCategory=(categoryId)=>{
    return axiosServer({
        method:'get',
        url:'/api/shop/list/category',
        params:{categoryId}
    })
}